/**
 * 
 */
package com.wissen.giskard.client.data;

import com.google.gwt.user.client.rpc.IsSerializable;
import com.wissen.giskard.client.payroll.services.ColumnData;

/**
 * @author Swapnil Sonawane
 *
 * @created date :09-Aug-2010
 */
public class SalaryDTO implements IsSerializable{
	
	
	 Long salary_Id;
	 String emp_Name;
	 String month;
	 double Total_salary;
	 String paid;
	 
	public Long getSalary_Id() {
		return salary_Id;
	}
	
	public void setSalary_Id(Long salaryId) {
		salary_Id = salaryId;
	}
	
	public String getEmp_Name() {
		return emp_Name;
	}
	
	
	public void setEmp_Name(String empName) {
		emp_Name = empName;
	}
	
	public String getMonth() {
		return month;
	}
	
	public void setMonth(String month) {
		this.month = month;
	}
	
	public double getTotal_salary() {
		return Total_salary;
	}
	
	public void setTotal_salary(double totalSalary) {
		Total_salary = totalSalary;
	}
	
	public String getPaid() {
		return paid;
	}
	public void setPaid(String paid) {
		this.paid = paid;
	}
	
	public ColumnData[] getColumnData()
	{
		ColumnData[] columns = new ColumnData[5];
		
		columns[0]=new ColumnData();
		columns[0].setValues(this.salary_Id+"");
		
		columns[1]=new ColumnData();
		columns[1].setValues(this.emp_Name);
		
		columns[2]=new ColumnData();
		columns[2].setValues(this.month);
		
		columns[3]=new ColumnData();
		columns[3].setValues(this.Total_salary+"");
		
		columns[4]=new ColumnData();
		columns[4].setValues(this.paid);
		columns[4].setType(1);
		
		return columns;
		
	}
	
	
	 public  String[] getColumnHeader() {

	        String[] columnHeader = new String[5];

	        columnHeader[0] = "Salary ID";
	        columnHeader[1] = "Emp Name";
	        columnHeader[2] = "Month";
	        columnHeader[3] = "Total Salary";
	        columnHeader[4] = "paid";

	        return columnHeader;

	    }

	
	
}
